<template>
  <div class="HomeItem">
    <div class="item" v-for="(item,index) of weekendList" :key="index">
      <img :src="item.imgUrl" alt>
      <div class="info">
        <h6>{{item.title}}</h6>
        <span>{{item.content}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeItem",
  props: {
    weekendList: {
      type: Array
    }
  },
  data() {
    return {};
  }
};
</script>
<style lang="scss" scoped>
.item {
  line-height: 35px;
}
img{
    width: 100%;
}
.info {
  padding: 20px;
  span {
    color: gray;
    font-size: 20px;
  }
}
</style>
